Sufficient Conditions for Local Optimality